package thread;

import java.io.*;
import java.net.Socket;

public class BSServerThread extends Thread{

    private Socket socket;

    public BSServerThread(Socket socket) {
        this.socket = socket;

    }
    @Override
    public void run() {
        try {
            OutputStream outputStream = socket.getOutputStream();
            PrintStream ps = new PrintStream(outputStream);
            ps.println("HTTP/1.1 200 OK");
            ps.println("Content-Type:text/html;charset=UTF-8");
            ps.println();
            ps.println("<div>lsdkjfk<div>");
            ps.close();
            socket.close();
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
